package com.nut.spp.adapy.req;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CreateReq {

    //订单号
    @NotNull
    private String orderId;

    //支付方式 1支付宝 2微信 3扫码支付 4绑卡支付
    @NotNull
    private Integer payWay;

    //交易标题
    private String subject;

    //交易内容
    private String body;

    //支付金额 分
    private Integer payMoney;

    private String ssn;

    private String callback;

    //授权码
    private String authCode;


    //------ wx mp --------

    private String openid;

    private String code;

    //-------wx end --------

    public String getCallbackUrl(String notifyUrl) {
        return notifyUrl + orderId;
    }

}
